package com.max.xihu.patterns.template;

/**
 * @Author: Max
 * @Date: 2020-09-06 22:27
 * @Description:抽象模板类
 */
public abstract class AbstractTemplate {

    protected abstract void stepMethod1();

    protected abstract void stepMethod2();

    protected abstract void stepMethod3();

    public void templateMethod(){
        //处理其他逻辑

        this.stepMethod1();
        this.stepMethod2();
        this.stepMethod3();

        //处理其他逻辑
    }
}
